GenerateSN

SoftwareShield CheckPoint™ License Server > CheckPoint™ License Server Interfaces > CheckPoint_Webservice_References > GenerateSN

## GenerateSN

The GenerateSN function will generate a serial number.

###### Syntax

TCheckPointSNGenerationResponse * GenerateSN(

BSTR AOrderNo,

long LicenseID,

long AnAuthDefID,

long AParameterValue,

long PermittedActivations,

long PermittedOverflowActivations,

BSTR ASessionID

) ;

###### Parameters

AOrderNo

[IN] This is a String value which defines the order number that you wish to associate with this Serial Number

LicenseID

[IN] This is a numeric value which defines the license ID that is associated with this Serial Number

AnAuthDefID

[IN] This is a numeric value which defines the Authorization Definition ID that is associated to this Serial Number

AParameterValue

[IN] This is a numeric value which defines a parameter if it is necessary for the Authorization Definition

PermittedActivations

[IN] This is a numeric value which defines the number of permitted activations allowed for the serial number

PermittedOverflowActivations

[IN] This is a numeric value which defines the number of overflows allowed for the serial number

ASessionID

[IN] This is the session ID of the logged in user

###### Remarks

The user must be an administrator to use this function.

Also note that this will only generate a serial number for you, but does not add it to database. Use AddMultiSerialNoRecords or AddMultiSerialNoRecordsXML to add the serial number to CheckPoint.

Only administrators are allowed to use this function.

###### Return Value

Returns the custom class TCheckPointSNGenerationResponse. The fields of interest that is related to this method are:

- CheckPointReturnCode - this field will return a TCheckPointReturnCode.

- SN- The serial number that was generated

- ErrorMessage- If an error occurred the associated message can be found in this field.

- Success- If the function is successful then this will return true, otherwise false is returned.

###### Function Information

Exposed By Interface: | "ICheckPointService"
Exposed In ISAPI DLL: | "checkpoint.dll"